Release 10.1A: OpenEdge Development:
Programming Interfaces
Configuring a SAX-writer
The next step is to set the values that control how the write will occur. Some steps you may want to follow:
- If you are reusing a SAX-writer object for multiple writes, call the
RESETmethod to clear the object and reset the default values.- Use the
SET-OUTPUT-DESTINATIONmethod to declare the output destination and its type (file, longchar, memptr, stream).- Set the
VERSION,ENCODING, andSTANDALONEattributes to ensure that the XML documents prolog is correctly configured.- Set the
FRAGMENTattribute if you are writing XML content that is not a complete XML document.- Set the
FORMATTEDattribute if you want the XML output to have extra whitespace for easy readability.- Set the
STRICTattribute toFALSEif you do not want the write to fail if the parser detects invalid XML.Here is an example:
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |